package ModelImplementation

import "PaySalary/Model"

type SalariedClassification struct {
	itsSalary float64
}

func NewSalariedClassification(salary float64) *SalariedClassification {
	return &SalariedClassification{
		itsSalary : salary,
	}
}

func (s *SalariedClassification) GetSalary() float64 {
	return s.itsSalary
}

//实现PaymentClassification中的CalculatePay方法
func (s *SalariedClassification)CalculatePay(pc Model.Paycheck) float64 {
	return s.itsSalary
}
